import Mock from 'mockjs'
import {param2Obj} from '@/utils'

const List = []
const count = 10
// for (let i = 0; i < count; i++) {
let data = [{
  'code': 200,
  'message': '请求/操作成功',
  'success': false,
  'data': {
    'total': '0',
    'list': [
      {
        'id': '1',
        'name': '江苏传智播客教育科技股份有限公司',
        'managerId': 'abc',
        'version': '12',
        'renewalDate': null,
        'expirationDate': null,
        'companyArea': null,
        'companyAddress': null,
        'businessLicenseId': null,
        'legalRepresentative': '张三',
        'companyPhone': null,
        'mailbox': null,
        'companySize': null,
        'industry': null,
        'remarks': null,
        'auditState': 0,
        'state': 1,
        'balance': 0,
        'createTime': '2018-11-07 13:30:05',
        'updateTime': '2023-03-20 18:11:29'
      },
      {
        'id': '1060043412612452352',
        'name': 'zhangsan',
        'managerId': 'abc',
        'version': '12',
        'renewalDate': null,
        'expirationDate': null,
        'companyArea': null,
        'companyAddress': null,
        'businessLicenseId': null,
        'legalRepresentative': null,
        'companyPhone': null,
        'mailbox': null,
        'companySize': null,
        'industry': null,
        'remarks': null,
        'auditState': 0,
        'state': 1,
        'balance': 0,
        'createTime': '2018-11-07 13:36:58',
        'updateTime': '2023-03-20 18:11:29'
      },
      {
        'id': '1061532681482932224',
        'name': 'zhangsan',
        'managerId': 'abc',
        'version': '12',
        'renewalDate': null,
        'expirationDate': null,
        'companyArea': null,
        'companyAddress': null,
        'businessLicenseId': null,
        'legalRepresentative': null,
        'companyPhone': null,
        'mailbox': null,
        'companySize': null,
        'industry': null,
        'remarks': null,
        'auditState': 0,
        'state': 1,
        'balance': 0,
        'createTime': '2018-11-11 16:14:48',
        'updateTime': '2023-03-20 18:11:29'
      },
      {
        'id': '1065494996154650624',
        'name': '江苏传智播客教育股份有限公司',
        'managerId': null,
        'version': null,
        'renewalDate': null,
        'expirationDate': null,
        'companyArea': null,
        'companyAddress': null,
        'businessLicenseId': null,
        'legalRepresentative': null,
        'companyPhone': null,
        'mailbox': null,
        'companySize': null,
        'industry': null,
        'remarks': null,
        'auditState': 0,
        'state': 1,
        'balance': 0,
        'createTime': null,
        'updateTime': '2023-03-20 18:11:29'
      }
    ],
    'notEmpty': true,
    'empty': false
  },
  'fail': true,
  'succeed': true
}]
List.push(data)
// }
export default {
  list: () => {
    return {
      code: 10000,
      success: true,
      message: '查询成功',
      data: List
    }
  },
  sassDetail: () => {
    return {
      'code': 200,
      'message': '请求/操作成功',
      'success': false,
      'data': {
        'total': '0',
        'list': [
          {
            'id': '1',
            'name': '江苏传智播客教育科技股份有限公司',
            'managerId': 'abc',
            'version': '12',
            'renewalDate': null,
            'expirationDate': null,
            'companyArea': null,
            'companyAddress': null,
            'businessLicenseId': null,
            'legalRepresentative': '张三',
            'companyPhone': null,
            'mailbox': null,
            'companySize': null,
            'industry': null,
            'remarks': null,
            'auditState': 0,
            'state': 1,
            'balance': 0,
            'createTime': '2018-11-07 13:30:05',
            'updateTime': '2023-03-20 18:11:29'
          },
          {
            'id': '1060043412612452352',
            'name': 'zhangsan',
            'managerId': 'abc',
            'version': '12',
            'renewalDate': null,
            'expirationDate': null,
            'companyArea': null,
            'companyAddress': null,
            'businessLicenseId': null,
            'legalRepresentative': null,
            'companyPhone': null,
            'mailbox': null,
            'companySize': null,
            'industry': null,
            'remarks': null,
            'auditState': 0,
            'state': 1,
            'balance': 0,
            'createTime': '2018-11-07 13:36:58',
            'updateTime': '2023-03-20 18:11:29'
          },
          {
            'id': '1061532681482932224',
            'name': 'zhangsan',
            'managerId': 'abc',
            'version': '12',
            'renewalDate': null,
            'expirationDate': null,
            'companyArea': null,
            'companyAddress': null,
            'businessLicenseId': null,
            'legalRepresentative': null,
            'companyPhone': null,
            'mailbox': null,
            'companySize': null,
            'industry': null,
            'remarks': null,
            'auditState': 0,
            'state': 1,
            'balance': 0,
            'createTime': '2018-11-11 16:14:48',
            'updateTime': '2023-03-20 18:11:29'
          },
          {
            'id': '1065494996154650624',
            'name': '江苏传智播客教育股份有限公司',
            'managerId': null,
            'version': null,
            'renewalDate': null,
            'expirationDate': null,
            'companyArea': null,
            'companyAddress': null,
            'businessLicenseId': null,
            'legalRepresentative': null,
            'companyPhone': null,
            'mailbox': null,
            'companySize': null,
            'industry': null,
            'remarks': null,
            'auditState': 0,
            'state': 1,
            'balance': 0,
            'createTime': null,
            'updateTime': '2023-03-20 18:11:29'
          }
        ],
        'notEmpty': true,
        'empty': false
      },
      'fail': true,
      'succeed': true
    }
  }
}
